{if !($ajax)}
<div class="boxNews" id="boxNews">	
    <div class="headerTitle">
        <h3>Điểm tin</h3>
        {include file="index/box-news-header.tpl"}
    </div>
    <div class="newsItem" id="divNews">
    	
{/if}
		{include file="common/loading.tpl" display="none" loadtype=2}
		{if $arrNews}
        	{if $intNtype == 2}{assign var="key" value=0}{/if}
        	<div id="nSlider">
                <ul>
                    {foreach item=item key=i from=$arrNews}
                        {if $intNtype == 0}
                            <li>
                                {image path=$item.image type=5 small=1 class="border230" alt=$item.title|escape id=$item.newid title=$item.title|escape}
                                <h3><a href="{link_news newsid=$item.newid title=$item.title}" title="{$item.title}" class="black">{$item.title|str_wordwrap:60}</a></h3>
                                <p>{$item.short|str_wordwrap:253}</p>
                            </li>
                        {elseif $intNtype == 1}
                        	{if $i%5==0}<li>{/if}
                            	<div class="item{if $i%5==0} first{/if}">
                                	{image path=$item.image type=5 small=1 class="border50" alt=$item.title|escape id=$item.newid title=$item.title|escape}
                                    <h4><a href="{link_news newsid=$item.newid title=$item.title}" title="{$item.title}" class="black">{$item.title|str_wordwrap:60}</a></h4>
                                </div>
                            {if $i%5==4}</li>{/if}
                        {elseif $intNtype == 2}
                            {if $key%5==0}<li>{/if}
                                <div class="item{if $key%5==0} first{/if}">
                                	{image path=$item.info.image type=5 small=1 class="border50" alt=$item.info.title|escape id=$item.newid title=$item.info.title|escape}
                                    <h4><a href="{link_news newsid=$item.newid title=$item.info.title}" title="{$item.info.title}" class="black">{$item.info.title|str_wordwrap:60}</a></h4>
                                </div>
                            {if $key%5==4}</li>{/if}
                            {math equation="a+b" a=$key b=1 assign="key"}
                        {/if}
                    {/foreach}
                </ul>
        	</div>
       	{else}
        	<div class="notContent">{if $intNtype == 0}Hiện tại, chưa có nội dung điểm tin nổi bật nào.{elseif $intNtype == 1}{else}Hiện tại, bạn chưa đánh dấu quan tâm nội dung điểm tin nào.{/if}</div>
            <div class="bot">&nbsp;</div>  
        {/if}
{if !($ajax)} 
    </div>
</div>
{/if}